//
//  IMMessageManager.h
//  markmap
//
//  Created by 甘世清 on 2024/5/27.
//

#import <Foundation/Foundation.h>
#import "BaseIMTableViewCell.h"
NS_ASSUME_NONNULL_BEGIN

@interface IMMessageManager : NSObject <UIImagePickerControllerDelegate,UINavigationControllerDelegate>

+(IMMessageManager *)sharedIMManager;
/// 根据类型进行操作
/// - Parameters:
///   - model: 房间模型
///   - type: 类型 0 相册 1相机 2定位 3礼物
-(void)SQ_sendMsg:(IMListModel*)model type:(NSInteger)type;

/// 读取所有
/// - Parameter model: 房间模型
-(void)SQ_readAll:(IMListModel*)model;

/// 给模型二次改造
/// - Parameters:
///   - indexPath: 当前index
///   - jsonArray: 数组
-(IMMessageModel*)SQ_SetUPModel:(NSIndexPath*)indexPath array:(NSMutableArray*)jsonArray;

/// 根据类型判断哪个cell
/// - Parameters:
///   - model: model description
///   - tableView: tableView description
///   - indexPath: indexPath description
+(BaseIMTableViewCell*)SQ_getCell:(IMMessageModel*)model table:(UITableView*)tableView indexPath:(NSIndexPath*)indexPath;


/// 获取cell高度
/// - Parameter model: cell对应的模型
+(float)SQ_getCellHeight:(IMMessageModel*)model;

/// cell点击事件
/// - Parameters:
///   - tableView: tableView
///   - indexPath: index
-(void)SQ_celldidSelecttable:(UITableView*)tableView indexPath:(NSIndexPath*)indexPath array:(NSMutableArray*)jsonArray;


/// 顶部显示聊天内容
/// - Parameter model: 聊天数据
+(void)SQ_showMessage:(IMMessageModel*)model;
@end

NS_ASSUME_NONNULL_END
